package com.woniu.car.parameter;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class TCouponToUserParameter {
    @NotNull(message = "优惠券id不为空")
    @ApiModelProperty(value = "优惠券id",example = "1")
    private Integer couponId;
    @NotNull(message = "给的数量不能为空")
    @Min(value=1,message = "给的数量不能为负数且至少为一张")
    private Integer takeNum;
    @NotNull(message = "必须发放给用户")
    @Min(value=1,message = "用户id不能为负数")
    private Integer userId;
}
